﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Linq;
using System.IO;
using System.Xml;

namespace EFashion
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {


        }
        protected void LoginStatus1_LoggedOut(object sender, EventArgs e)
        {
            Session["IsLogin"] = 0;
            Session["UserName"] = "";
            Session["UserId"] = "";

        }
        public void LoadLogo()
        {
            XmlDocument doc = new XmlDocument();
     
            doc.Load(Server.MapPath("~/config.xml"));
            XmlNodeList a = doc.GetElementsByTagName("logo");
            String srcLogo = a[0].InnerText;
            String cssLogo = "<style type=\"text/css\">h1 a {display:block;background:url(../Admin/images/upload/" + srcLogo + ") no-repeat left top;width:237px;height:40px;text-indent:-9999px}</style>";
            Response.Write(cssLogo);
            //return cssLogo;
        }
    }
}
